package www.openteam.com.api;

import android.graphics.Bitmap;

import java.util.Map;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.PartMap;
import retrofit2.http.Query;
import rx.Observable;
import www.openteam.com.base.BaseHttpResult;
import www.openteam.com.bean.AddDeliverNote;
import www.openteam.com.bean.AppAuthority;
import www.openteam.com.bean.ApprlSuccess;
import www.openteam.com.bean.ApprovalStatu;
import www.openteam.com.bean.BaseWeight;
import www.openteam.com.bean.CustomOrder;
import www.openteam.com.bean.CustomType;
import www.openteam.com.bean.DeleteInfo;
import www.openteam.com.bean.DeleteWholeInfo;
import www.openteam.com.bean.DeliverGoods;
import www.openteam.com.bean.DlryNtPrimaryTable;
import www.openteam.com.bean.DlryNtSublist;
import www.openteam.com.bean.Evaluate_customer;
import www.openteam.com.bean.ExchangeRate;
import www.openteam.com.bean.FQCBadItem;
import www.openteam.com.bean.FQCCheckItem;
import www.openteam.com.bean.FQCCheckMan;
import www.openteam.com.bean.FQCCrMaMi;
import www.openteam.com.bean.FQCGoodsField;
import www.openteam.com.bean.FQCGoodsInspect;
import www.openteam.com.bean.FQCHalfGoodsInspect;
import www.openteam.com.bean.FQCSamplePlan;
import www.openteam.com.bean.IPQCBadReason;
import www.openteam.com.bean.IPQCCheckItem;
import www.openteam.com.bean.IPQCCheckMan;
import www.openteam.com.bean.IPQCDispose;
import www.openteam.com.bean.IPQCMachine;
import www.openteam.com.bean.IPQCMsg00;
import www.openteam.com.bean.IPQCMsg01;
import www.openteam.com.bean.IPQCProduce;
import www.openteam.com.bean.IQCCheckItem;
import www.openteam.com.bean.IQCCust00;
import www.openteam.com.bean.IQCDefectdItem;
import www.openteam.com.bean.IQCMsg00;
import www.openteam.com.bean.IQCSamplePlan;
import www.openteam.com.bean.Inputer;
import www.openteam.com.bean.InsertStatus;
import www.openteam.com.bean.MachineInfo;
import www.openteam.com.bean.MaxRdsno;
import www.openteam.com.bean.MoneryTypeWithRate;
import www.openteam.com.bean.MoneyType;
import www.openteam.com.bean.Mopocedure;
import www.openteam.com.bean.OrderApproval;
import www.openteam.com.bean.OutFactoryMsg;
import www.openteam.com.bean.PDistrubition;
import www.openteam.com.bean.PDistrubiton_JijianNumb;
import www.openteam.com.bean.PackTypeInfo;
import www.openteam.com.bean.PaperDGsm;
import www.openteam.com.bean.PaperTypeName;
import www.openteam.com.bean.PayType;
import www.openteam.com.bean.PayableApproval;
import www.openteam.com.bean.PbKzMsg;
import www.openteam.com.bean.PbMaterial;
import www.openteam.com.bean.PbProductInfo;
import www.openteam.com.bean.PeopleGroup;
import www.openteam.com.bean.PrintMesg;
import www.openteam.com.bean.ProOrder;
import www.openteam.com.bean.ProStock;
import www.openteam.com.bean.ProcessDonePduReust;
import www.openteam.com.bean.ProcessDoneType;
import www.openteam.com.bean.ProducePro;
import www.openteam.com.bean.ProductInfo;
import www.openteam.com.bean.ProductMsg;
import www.openteam.com.bean.QueryCustom;
import www.openteam.com.bean.ReceivableApproval;
import www.openteam.com.bean.RequstMaterial;
import www.openteam.com.bean.Result;
import www.openteam.com.bean.ResultNew;
import www.openteam.com.bean.SRCKPlanMsg;
import www.openteam.com.bean.SRCPoduMsg;
import www.openteam.com.bean.SendRcvBean;
import www.openteam.com.bean.SendRcvPoductMsg;
import www.openteam.com.bean.SendRcvUserMsg;
import www.openteam.com.bean.ShipBus;
import www.openteam.com.bean.ShipBusList;
import www.openteam.com.bean.ShowSignature;
import www.openteam.com.bean.SomeCustomInfo;
import www.openteam.com.bean.StockTaxLocation;
import www.openteam.com.bean.StockTaxMaterial;
import www.openteam.com.bean.StockTaxPrimary;
import www.openteam.com.bean.TakeDeliverGoods;
import www.openteam.com.bean.UpdateInfo;
import www.openteam.com.bean.UpdateTypeInfo;
import www.openteam.com.bean.User;
import www.openteam.com.bean.UserSpRight;
import www.openteam.com.bean.WorkOrder;
import www.openteam.com.bean.WorkOrder2;
import www.openteam.com.bean.Worker;

/**
 * Created by kylin on 2016/12/14.
 * 网络请求接口
 */

public interface HttpApiService {

    // 请求用户名
    @GET("UserList/names_re")
    Observable<User> getUserData(@Query("pageSize") int pageSize);

    //提交密码和用户名
    @FormUrlEncoded
    @POST("UserList/check_pwd")
    Observable<ResultNew> login(@Field("name") String name, @Field("pass") String password);


    //查询送货进度
    // http://openteam.tpddns.cn:8090/index.php/OpenTeam/QueryPro/queryPro?
    // rdsno=&custid=&startDate=1459036800000&endDate=0&stype=02&moreCom=S&userId=85
    // &jMark=1&pageSize=0
    @GET("QueryPro/queryPro")
    Observable<BaseHttpResult<DeliverGoods>>
    queryDeliverGoods(@Query("rdsno") String rdsno, @Query("custid") String custid,
                      @Query("startDate") long startDate, @Query("endDate") long endDate,
                      @Query("stype") String stype, @Query("moreCom") String moreCom,
                      @Query("userId") int userId,
                      @Query("jMark") String jMark, @Query("pageSize") int PageSize);

    //查询收货进度
    //http://192.168.1.6:8090/index.php/OpenTeam/QueryTDG/queryTDG?rdsno=E1&custid=&startDate=1390406400000&endDate=&pageSize=0
    @GET("QueryTDG/queryTDG")
    Observable<BaseHttpResult<TakeDeliverGoods>>
    queryTDeliverGoods(@Query("rdsno") String rdsno, @Query("custid") String custid,
                       @Query("startDate") long startDate, @Query("endDate") long endDate,
                       @Query("stype") String stype, @Query("moreCom") String moreCom,
                       @Query("userId") int userId,
                       @Query("jMark") String jMark, @Query("pageSize") int PageSize);

    //生产进度
    //http://192.168.1.6:8090/index.php/OpenTeam/QueryPrud/queryPrud?rdsno=&custid=&code=2C&startDate=1390406400000&endDate=&pageSize=0
    @GET("QueryPrud/queryPrud")
    Observable<BaseHttpResult<ProducePro>>
    queryProd(@Query("rdsno") String rdsno, @Query("custid") String custid,
              @Query("code") String code, @Query("startDate") long startDate,
              @Query("endDate") long endDate,
              @Query("stype") String stype, @Query("moreCom") String moreCom,
              @Query("userId") int userId,
              @Query("jMark") String jMark, @Query("pageSize") int PageSize);

//
//    $rdsno =$_GET['rdsno'];
//    $custid =$_GET['custid'];
//    $code =$_GET['code'];
//    $startDate =$_GET['startDate'];
//    $endDate =$_GET['endDate'];
//    $pageSize =$_GET['pageSize'];
//    $stype =$_GET['stype'];
//    $moreCom =$_GET['moreCom'];
//    $userId =$_GET['userId'];
//    $jMark =$_GET['jMark'];


    // 库存查询
    @GET("QueryStock/queryStock")
    Observable<BaseHttpResult<ProStock>>
    queryStock(@Query("rdsno") String rdsno,
               @Query("stype") String stype,
               @Query("pageSize") int PageSize);

    //客户订单审批
//    @FormUrlEncoded
    // OrderApproval/orderApproval?custorderid=&custid=M&orderStatus=&startDate=1315152000000&endDate=&pageSize=0
    @GET("OrderApproval/orderApproval")
    Observable<BaseHttpResult<OrderApproval>> queryOrder(
            @Query("custorderid") String custorderid, @Query("custid") String custid,
            @Query("orderStatus") String orderStatus, @Query("startDate") long startDate,
            @Query("endDate") long endDate,
            @Query("stype") String stype, @Query("moreCom") String moreCom,
            @Query("userId") int userId,
            @Query("jMark") String jMark, @Query("pageSize") int PageSize
    );

    //采购订单
    //http://openteam.tpddns.cn:8090/index.php/OpenTeam/PrOrderApproval/prOrderApproval?rdsno&code=&orderStatus=&startDate=1418486400000&endDate=&pageSize=0
    @GET("PrOrderApproval/prOrderApproval")
    Observable<BaseHttpResult<ProOrder>>
    queryPrOrder(@Query("rdsno") String rdsno, @Query("code") String code,
                 @Query("orderStatus") String orderStatus, @Query("startDate") long startDate,
                 @Query("endDate") long endDate,
                 @Query("stype") String stype, @Query("moreCom") String moreCom,
                 @Query("pageSize") int PageSize);

    //应收款审批
    @GET("ReceivableApproval/receivableApproval")
    Observable<BaseHttpResult<ReceivableApproval>>
    queryReceivableApproval(@Query("custid") String custid, @Query("startDate") long startDate,
                            @Query("endDate") long endDate, @Query("orderStatus") int orderStatus,
                            @Query("stype") String stype, @Query("moreCom") String moreCom,
                            @Query("pageSize") int PageSize);


    //
    @GET("PayableApproval/payableApproval")
    Observable<BaseHttpResult<PayableApproval>>
    queryPayableApproval(@Query("vendno") String vendno, @Query("startDate")
            long startDate, @Query("endDate") long endDate,
                         @Query("orderStatus") int orderStatus,
                         @Query("stype") String stype, @Query("moreCom") String moreCom,
                         @Query("pageSize") int PageSize);

    //ApprovalUpdate/approvalUpdate?id=17183
    //客户订单审批

    @GET("ApprovalUpdate/approvalUpdate")
    Observable<BaseHttpResult<ApprovalStatu>> approvalStatu(@Query("id") int id);

    //采购订单反审核
    @GET("ApprovalUpdate/unprApprovalUpdate")
    Observable<BaseHttpResult<ApprovalStatu>> unprApprovalUpdate(@Query("id") int id);

    @GET("ApprovalUpdate/reApprovalUpdate")
    Observable<BaseHttpResult<ApprovalStatu>> reApprovalUpdate(@Query("id") int id);

    @GET("ApprovalUpdate/unReApprovalUpdate")
    Observable<BaseHttpResult<ApprovalStatu>> unReApprovalUpdate(@Query("id") int id);

    @GET("ApprovalUpdate/paApprovalUpdate")
    Observable<BaseHttpResult<ApprovalStatu>> paApprovalUpdate(@Query("id") int id);

    @GET("ApprovalUpdate/unPaApprovalUpdate")
    Observable<BaseHttpResult<ApprovalStatu>> unPaApprovalUpdate(@Query("id") int id);

    //采购订单审核
    @GET("ApprovalUpdate/prApprovalUpdate")
    Observable<BaseHttpResult<ApprovalStatu>> prApprovalUpdate(@Query("id") int id);

    //客户订单反审核
    @GET("ApprovalUpdate/unapprovalUpdate")
    Observable<BaseHttpResult<ApprovalStatu>> unapprovalStatu(@Query("id") int id);

    @GET("QueryProductInfo/querypbMaterialTypelst")
    Observable<BaseHttpResult<CustomType>> queryMaterialTypelst();

    @GET("QueryProductInfo/queryProductInfo")
    Observable<BaseHttpResult<ProductInfo>> queryProductInfo(@Query("code") String code,
                                                             @Query("name") String name,
                                                             @Query("pageSize") int PageSize);

    @GET("QueryCocustom/queryCocustom")
    Observable<BaseHttpResult<QueryCustom>> queryCocustomInfo(@Query("code") String code
            , @Query("name") String name, @Query("Businessman") String Businessman,
                                                              @Query("pageSize") int PageSize);


    @GET("QueryCocustom/queryCocustom")
    Observable<BaseHttpResult<QueryCustom>> queryCocustomInfos(@Query("code") String code
            , @Query("name") String name, @Query("Businessman") String Businessman, @Query("UserID") int UserID, @Query("pageSize") int PageSize);

    @GET("QueryCocustom/queryCustomType")
    Observable<BaseHttpResult<CustomType>> queryCocustomTypeInfo(@Query("pageSize") int PageSize);


    @GET("QueryCocustom/queryCopayType")
    Observable<BaseHttpResult<CustomType>> queryCopayTypeInfo(@Query("pageSize") int PageSize);

    @GET("QueryCocustom/queryMoneyType")
    Observable<BaseHttpResult<CustomType>> queryMoneyTypeInfo(@Query("pageSize") int PageSize);

    @GET("QueryCocustom/querySendType")
    Observable<BaseHttpResult<CustomType>> querySendTypeInfo(@Query("pageSize") int PageSize);

    @FormUrlEncoded
    @POST("InsertCustomInfo/insertCustomInfo")
    Observable<BaseHttpResult<InsertStatus>> insertCustomInfo(@Field("code") String code, @Field("name") String name,
                                                              @Field("type") String type, @Field("paytime") String paytime,
                                                              @Field("moneytype") String moneytype, @Field("SendAddress") String SendAddress,
                                                              @Field("connecter") String connecter, @Field("BusinessMan") String BusinessMan,
                                                              @Field("CreditNumb") String CreditNumb, @Field("cTel") String cTel);

    @FormUrlEncoded
    @POST("InsertCustomInfo/updateCustomInfo")
    Observable<BaseHttpResult<InsertStatus>> updateCustomInfo(@Field("code") String code,
                                                              @Field("name") String name,
                                                              @Field("type") String type,
                                                              @Field("paytime") String paytime,
                                                              @Field("moneytype") String moneytype,
                                                              @Field("SendAddress") String SendAddress,
                                                              @Field("connecter") String connecter,
                                                              @Field("BusinessMan") String BusinessMan,
                                                              @Field("CreditNumb") String CreditNumb,
                                                              @Field("cTel") String cTel, @Field("id") int id);


    @FormUrlEncoded
    @POST("InsertProductInfo/insertProductInfo")
    Observable<BaseHttpResult<InsertStatus>> insertProductInfo(@Field("code") String code,
                                                               @Field("name") String name,
                                                               @Field("type") String type,
                                                               @Field("ccode") String ccode,
                                                               @Field("length") String length,
                                                               @Field("width") String width,
                                                               @Field("height") String height,
                                                               @Field("unit") String unit,
                                                               @Field("maxstock") String maxstock,
                                                               @Field("typename") String typename,
                                                               @Field("CoverPage") String CoverPage,
                                                               @Field("contentpage") String contentpage,
                                                               @Field("minstock") String minstock);

    @FormUrlEncoded
    @POST("InsertProductInfo/updateProductInfo")
    Observable<BaseHttpResult<InsertStatus>> updateProductInfo(@Field("code") String code, @Field("name") String name,
                                                               @Field("type") String type, @Field("ccode") String ccode,
                                                               @Field("length") String length, @Field("width") String width,
                                                               @Field("height") String height, @Field("unit") String unit,
                                                               @Field("maxstock") String maxstock,
                                                               @Field("typename") String typename,
                                                               @Field("CoverPage") String CoverPage, @Field("contentpage") String contentpage, @Field("minstock") String minstock);

    @FormUrlEncoded
    @POST("InsertCustomInfo/deleteCustomInfo")
    Observable<BaseHttpResult<InsertStatus>> deleteCustomInfo(@Field("id") int id);

    @FormUrlEncoded
    @POST("InsertProductInfo/deleteProductInfo")
    Observable<BaseHttpResult<InsertStatus>> deleteProductInfo(@Field("code") String code);


    //192.168.1.6:8090/index.php/OpenTeam/InsertCustomOrderInfo/queryCustomOrderInfo?rdsno=&custid=2&pageSize=0

    /**
     * 客户订单信息查询
     *
     * @param rdsno    订单号
     * @param custid   客户编号
     * @param pageSize 页
     * @return
     */
    @GET("InsertCustomOrderInfo/queryCustomOrderInfo")
    Observable<BaseHttpResult<CustomOrder>> queryCustomOrderInfo(@Query("rdsno") String rdsno,
                                                                 @Query("custid") String custid,
                                                                 @Query("pageSize") int pageSize);


    //    192.168.1.6:8090/index.php/OpenTeam/InsertCustomOrderInfo/deleteCustomItemOrderInfo
    @FormUrlEncoded
    @POST("InsertCustomOrderInfo/deleteCustomItemOrderInfo")
    Observable<BaseHttpResult<DeleteInfo>> deleteCustomOrderItemInfo(
            @Field("zbid") int zbid,
            @Field("prodno") String prodno
    );

    //    192.168.1.6:8090/index.php/OpenTeam/InsertCustomOrderInfo/deleteCustomOrderInfo
    @FormUrlEncoded
    @POST("InsertCustomOrderInfo/deleteCustomOrderInfo")
    Observable<BaseHttpResult<DeleteWholeInfo>> deleteCustomOrderInfo(
            @Field("id") int id
    );


    /**
     * 客户订单产品信息
     *
     * @param name
     * @param pageSize
     * @return
     */
//    192.168.1.6:8090/index.php/OpenTeam/InsertCustomOrderInfo/queryPbproductInfo?name=彩盒&pageSize=1
    @GET("InsertCustomOrderInfo/queryPbproductInfo")
    Observable<BaseHttpResult<PbProductInfo>> queryPbproductInfo(@Query("name") String name,
                                                                 @Query("pageSize") int pageSize);

    //    192.168.1.6:8090/index.php/OpenTeam/InsertCustomOrderInfo/queryPackTypeInfo?name=&pageSize=0
    @GET("InsertCustomOrderInfo/queryPackTypeInfo")
    Observable<BaseHttpResult<PackTypeInfo>> queryPackTypeInfo(@Query("name") String name,
                                                               @Query("pageSize") int pageSize);

    //    192.168.1.6:8090/index.php/OpenTeam/InsertCustomOrderInfo/queryCustomInfo?name=&pageSize=0
    @GET("InsertCustomOrderInfo/queryCustomInfo")
    Observable<BaseHttpResult<SomeCustomInfo>> querySomeCustomInfo(@Query("name") String name,
                                                                   @Query("pageSize") int pageSize);

    // senddate, wraptype, paperinf, technicsinf, printcolor, paynumb, othernumb
//    , price , prodno , id)

    @FormUrlEncoded
    @POST("InsertCustomOrderInfo/updateItemInfo")
    Observable<BaseHttpResult<ApprovalStatu>> updateCustomOrderItemInfo(
            @Field("id") int id, @Field("prodno") String prodno
            , @Field("wraptype") String wraptype, @Field("paperinf") String paperinf
            , @Field("senddate") String senddate, @Field("technicsinf") String technicsinf
            , @Field("printcolor") String printcolor, @Field("paynumb") String paynumb
            , @Field("othernumb") String othernumb, @Field("price") String price
            , @Field("eprodno") String eprodno
    );


    @FormUrlEncoded
    @POST("InsertCustomOrderInfo/insertItemInfo")
    Observable<BaseHttpResult<ApprovalStatu>> insertCustomOrderItemInfo(
            @Field("id") int id, @Field("prodno") String prodno
            , @Field("wraptype") String wraptype, @Field("paperinf") String paperinf
            , @Field("senddate") String senddate, @Field("technicsinf") String technicsinf
            , @Field("printcolor") String printcolor, @Field("paynumb") String paynumb
            , @Field("othernumb") String othernumb, @Field("price") String price
    );


    //    int id, String rdsno, String custid,
//    int userid, String moneyname,
//    String moneytype, String payname,
//    String paytime, String sendname,
//    String sendtype,
//    String custorderid, String alreadlypay,
//    String inputdate, String inputer,
//    String orderamount,
//    String remark, String orderdate, String sendaddress,
//    int istax, String taxrate,   String invtype,
//    String stype
//
    @FormUrlEncoded
    @POST("InsertCustomOrderInfo/updateMainInfo")
    Observable<BaseHttpResult<ApprovalStatu>> updateCustomOrderMainInfo(
            @Field("id") int id, @Field("rdsno") String rdsno
            , @Field("custid") String custid, @Field("userid") String userid
            , @Field("moneytype") String moneytype, @Field("paytime") String paytime
            , @Field("sendtype") String sendtype, @Field("custorderid") String custorderid
            , @Field("alreadlypay") String alreadlypay, @Field("inputdate") String inputdate
            , @Field("inputer") String inputer, @Field("orderamount") String orderamount
            , @Field("remark") String remark, @Field("orderdate") String orderdate
            , @Field("sendaddress") String sendaddress, @Field("istax") String istax
            , @Field("taxrate") String taxrate, @Field("invtype") String invtype
            , @Field("stype") String stype
    );


    @FormUrlEncoded
    @POST("InsertCustomOrderInfo/insertMainInfo")
    Observable<BaseHttpResult<ApprovalStatu>> insertCustomOrderMainInfo(
            @Field("custid") String custid
            , @Field("businessno") String businessno, @Field("userid") String userid
            , @Field("moneytype") String moneytype, @Field("paytime") String paytime
            , @Field("sendtype") String sendtype, @Field("custorderid") String custorderid
            , @Field("alreadlypay") String alreadlypay, @Field("inputdate") String inputdate
            , @Field("inputer") String inputer, @Field("orderamount") String orderamount
            , @Field("remark") String remark, @Field("orderdate") String orderdate
            , @Field("sendaddress") String sendaddress, @Field("istax") String istax
            , @Field("taxrate") String taxrate, @Field("invtype") String invtype
            , @Field("stype") String stype
    );


    //获取新版app版本信息
    @GET("UpdateInfo/readUpdateInfo")
    @Headers({"url_name:php"})
    Observable<BaseHttpResult<UpdateTypeInfo>> queryUpdateInfo(@Query("vc") int vc);

    //下载apk
    @GET("UpdateInfo/returnDUrl")
    Observable<ResponseBody> downloadUpdateAPk();

    //http://192.168.1.119:8090/index.php/OpenTeam/AppPermission/checkAuthority
    //权限检查
    @FormUrlEncoded
    @POST("AppPermission/checkAuthority")
    Observable<BaseHttpResult<AppAuthority>> checkAuthority(
            @Field("aCode") String aCode, @Field("uId") int uId
    );

    @FormUrlEncoded
    @POST("OrderApproval/isLAMoney")
    Observable<BaseHttpResult<UserSpRight>> checkIsLAM(
            @Field("UID") int uId,
            @Field("RID") int rId
    );


    interface HZRB{
        //查询工单
        @FormUrlEncoded
        @POST("HZRBWorkOrder/queryWO")
        Observable<BaseHttpResult<WorkOrder>> queryWO(
                @Field("barCode") String barCode,
                @Field("stype") String stype,
                @Field("morecom") String morecom,
                @Field("proCode") int proCode
        );

        @FormUrlEncoded
        @POST("HZRBWorkOrder/findMachine")
        Observable<BaseHttpResult<MachineInfo>> findMacheine(
                @Field("code") String code
                , @Field("inputer") String inputer
                , @Field("processid") String processid
                , @Field("rdsno") String rdsno
                , @Field("stype") String stype,
                @Field("morecom") String morecom
        );
//    @GET("UserList/inputerCode")
//    Observable<BaseHttpResult<Inputer>> queryUserIsExist(@Query("name") String name);

        @FormUrlEncoded
        @POST("HZRBWorkOrder/findInputer")
        Observable<BaseHttpResult<Inputer>> queryUserIsExist(
                @Field("code") String code
        );


        @FormUrlEncoded
        @POST("HZRBWorkOrder/findPeopleGroup")
        Observable<BaseHttpResult<PeopleGroup>> findPeopleGroup(
                @Field("code") String code
                , @Field("pageSize") int pageSize
        );

        @FormUrlEncoded
        @POST("HZRBWorkOrder/findBanzu")
        Observable<BaseHttpResult<PeopleGroup>> findBanzu(
                @Field("code") String code
                , @Field("pageSize") int pageSize
        );

//    @FormUrlEncoded
//    @POST("WorkOrder/findWorkPrice")
//    Observable<BaseHttpResult<PDistrubiton_JijianNumb>> findWorkPrice(
//            @Field("machinecode") String machinecode,
//            @Field("banzu") String banzu
//            , @Field("peopleGroup") String peopleGroup
//            , @Field("stype") String stype,
//            @Field("morecom") String morecom
//    );

        @FormUrlEncoded
        @POST("HZRBWorkOrder/findWorkPrice")
        Observable<PDistrubiton_JijianNumb> findWorkPrice(
                @Field("machinecode") String machinecode,
                @Field("banzu") String banzu
                , @Field("peopleGroup") String peopleGroup
                , @Field("stype") String stype,
                @Field("morecom") String morecom
        );
        //	$zbid=$_POST['zbid'];
//    $procno=$_POST['procno'];
//    $id=$_POST['id'];
//    $e_Time=$_POST['e_Time'];


        @FormUrlEncoded
        @POST("HZRBWorkOrder/updateTimeStatus")
        Observable<BaseHttpResult<UpdateInfo>> updateTimeStatus(
                @Field("zbid") String zbid,
                @Field("procno") String procno,
                @Field("id") String id,
                @Field("e_Time") String e_Time
                , @Field("stype") String stype,
                @Field("morecom") String morecom
        );

        @FormUrlEncoded
        @POST("HZRBWorkOrder/findWorker")
        Observable<Worker> findWorker(
                @Field("code") String code

        );


        /**
         * @param InputDate 建单日期
         * @param zbid      生产工程单id
         * @param rdsno     工单编号
         * @param orderno   订单编号
         * @param custid    客户id
         * @param StartTime 开始时间
         * @param PartID    部件id
         * @param PrdID     生产工程单工序id
         * @param TolNumb   应产数
         * @param code      产品编号
         * @param Inputer   錄入员
         * @param UserID    登录的用户id
         * @param MachinID  机台编号
         * @param procno    工序编号
         * @return
         */
        @FormUrlEncoded
        @POST("HZRBWorkOrder/insertSProductionInfo")
        Observable<UpdateInfo> insertSProductionInfo(
                @Field("InputDate") long InputDate,
                @Field("zbid") String zbid,
                @Field("rdsno") String rdsno,
                @Field("orderno") String orderno,
                @Field("custid") String custid,
                @Field("StartTime") long StartTime,
                @Field("PartID") String PartID,
                @Field("PrdID") String PrdID,
                @Field("TolNumb") double TolNumb,
                @Field("code") String code,
                @Field("Inputer") String Inputer,
                @Field("UserID") String UserID,
                @Field("MachinID") String MachinID,
                @Field("BuilderName") String BuilderName,
                @Field("InputerName") String InputerName,
                @Field("procno") String procno
                , @Field("stype") String stype,
                @Field("morecom") String morecom
        );


        /**
         * @param groupA     人组数据
         * @param isFinish   是否完成
         * @param rdsno      工单编号
         * @param GroupCount 人组
         * @param zbid       生产工程单id
         * @param OverDate   完成日期
         * @param EndTime    结束日期
         * @param PrdID      生产工程单工序id
         * @param Numb1      车头数
         * @param MachinID   机台编号
         * @param code       产品编号
         * @param Inputer    錄入员
         * @param procno     工序编号
         * @return
         */
        @FormUrlEncoded
        @POST("HZRBWorkOrder/insertEProductionInfo")
        Observable<UpdateInfo> insertEProductionInfo(
                @Field("groupA") String groupA,

                @Field("isFinish") boolean isFinish,
                @Field("rdsno") String rdsno,
                @Field("GroupCount") String GroupCount,
                @Field("zbid") String zbid,
                @Field("OverDate") long OverDate,
                @Field("EndTime") long EndTime,
                @Field("PrdID") String PrdID,
                @Field("Numb1") double Numb1,
                @Field("MachinID") String MachinID,
                @Field("code") String code,
                @Field("Inputer") String Inputer,
                @Field("procno") String procno,
                @Field("custid") String custid,
                @Field("orderno") String orderno,
                @Field("TolNumb") double TolNumb,
                @Field("PartID") String PartID,
                @Field("BuilderName") String BuilderName,
                @Field("InputerName") String InputerName,
                @Field("userid") int userid,
                @Field("id") int id,
                @Field("banzu") String banzu
                , @Field("stype") String stype,
                @Field("morecom") String morecom,
                @Field("PrtType") String prtType, @Field("PrtPoNe") String prtPoNe,
                @Field("PrtColor") String prtColor, @Field("PrtCode") String prtCode,
                @Field("PrtPrctType") String prtPrctType, @Field("DraftflowD") String draftflowD,
                @Field("HalfStorage") String halfStorage, @Field("changeTime") int changeTime,
                @Field("waitTime") int waitTime, @Field("delayTime") int delayTime,
                @Field("remark") String remark
        );
    }


    interface BaseWorkOrder{
        @FormUrlEncoded
        @POST("BaseWorkOrder/insertEProductionInfo")
        Observable<UpdateInfo> insertEProductionInfo(
                @Field("groupA") String groupA,

                @Field("isFinish") boolean isFinish,
                @Field("rdsno") String rdsno,
                @Field("GroupCount") String GroupCount,
                @Field("zbid") String zbid,
                @Field("OverDate") long OverDate,
                @Field("EndTime") long EndTime,
                @Field("PrdID") String PrdID,
                @Field("Numb1") double Numb1,
                @Field("MachinID") String MachinID,
                @Field("code") String code,
                @Field("Inputer") String Inputer,
                @Field("procno") String procno,
                @Field("custid") String custid,
                @Field("orderno") String orderno,
                @Field("TolNumb") double TolNumb,
                @Field("PartID") String PartID,
                @Field("BuilderName") String BuilderName,
                @Field("InputerName") String InputerName,
                @Field("userid") int userid,
                @Field("id") int id,
                @Field("banzu") String banzu
                , @Field("stype") String stype,
                @Field("morecom") String morecom,
                @Field("remark") String remark
        );
    }

    //查询工单
    @FormUrlEncoded
    @POST("BaseWorkOrder/queryWO")
    Observable<WorkOrder2> queryWO(
            @Field("barCode") String barCode,
            @Field("stype") String stype,
            @Field("morecom") String morecom,
            @Field("proCode") int proCode
    );

    @FormUrlEncoded
    @POST("BaseWorkOrder/findMachine")
    Observable<BaseHttpResult<MachineInfo>> findMacheine(
            @Field("code") String code
            , @Field("inputer") String inputer
            , @Field("processid") String processid
            , @Field("rdsno") String rdsno
            , @Field("stype") String stype,
            @Field("morecom") String morecom
    );
//    @GET("UserList/inputerCode")
//    Observable<BaseHttpResult<Inputer>> queryUserIsExist(@Query("name") String name);

    @FormUrlEncoded
    @POST("BaseWorkOrder/findInputer")
    Observable<BaseHttpResult<Inputer>> queryUserIsExist(
            @Field("code") String code
    );


    @FormUrlEncoded
    @POST("BaseWorkOrder/findPeopleGroup")
    Observable<BaseHttpResult<PeopleGroup>> findPeopleGroup(
            @Field("code") String code
            , @Field("pageSize") int pageSize
    );

    @FormUrlEncoded
    @POST("BaseWorkOrder/findBanzu")
    Observable<BaseHttpResult<PeopleGroup>> findBanzu(
            @Field("code") String code
            , @Field("pageSize") int pageSize
    );

//    @FormUrlEncoded
//    @POST("WorkOrder/findWorkPrice")
//    Observable<BaseHttpResult<PDistrubiton_JijianNumb>> findWorkPrice(
//            @Field("machinecode") String machinecode,
//            @Field("banzu") String banzu
//            , @Field("peopleGroup") String peopleGroup
//            , @Field("stype") String stype,
//            @Field("morecom") String morecom
//    );

    @FormUrlEncoded
    @POST("BaseWorkOrder/findWorkPrice")
    Observable<PDistrubition> findWorkPrice(
            @Field("machinecode") String machinecode,
            @Field("banzu") String banzu
            , @Field("peopleGroup") String peopleGroup
            , @Field("stype") String stype,
            @Field("morecom") String morecom
    );



    @FormUrlEncoded
    @POST("BaseWorkOrder/updateTimeStatus")
    Observable<BaseHttpResult<UpdateInfo>> updateTimeStatus(
            @Field("zbid") String zbid,
            @Field("procno") String procno,
            @Field("id") String id,
            @Field("e_Time") String e_Time
            , @Field("stype") String stype,
            @Field("morecom") String morecom
    );

    @FormUrlEncoded
    @POST("BaseWorkOrder/findWorker")
    Observable<BaseHttpResult<Worker>> findWorker(
            @Field("code") String code

    );


    /**
     * @param InputDate 建单日期
     * @param zbid      生产工程单id
     * @param rdsno     工单编号
     * @param orderno   订单编号
     * @param custid    客户id
     * @param StartTime 开始时间
     * @param PartID    部件id
     * @param PrdID     生产工程单工序id
     * @param TolNumb   应产数
     * @param code      产品编号
     * @param Inputer   錄入员
     * @param UserID    登录的用户id
     * @param MachinID  机台编号
     * @param procno    工序编号
     * @return
     */
    @FormUrlEncoded
    @POST("BaseWorkOrder/insertSProductionInfo")
    Observable<UpdateInfo> insertSProductionInfo(
            @Field("InputDate") long InputDate,
            @Field("zbid") String zbid,
            @Field("rdsno") String rdsno,
            @Field("orderno") String orderno,
            @Field("custid") String custid,
            @Field("StartTime") long StartTime,
            @Field("PartID") String PartID,
            @Field("PrdID") String PrdID,
            @Field("TolNumb") double TolNumb,
            @Field("code") String code,
            @Field("Inputer") String Inputer,
            @Field("UserID") String UserID,
            @Field("MachinID") String MachinID,
            @Field("BuilderName") String BuilderName,
            @Field("InputerName") String InputerName,
            @Field("procno") String procno
            , @Field("stype") String stype,
            @Field("morecom") String morecom
    );


    interface ZZWorkorder{
        /**
         //     * @param groupA     人组数据
         * @param isFinish   是否完成
         * @param rdsno      工单编号
         * @param GroupCount 人组
         * @param zbid       生产工程单id
         * @param OverDate   完成日期
         * @param EndTime    结束日期
         * @param PrdID      生产工程单工序id
         * @param Numb1      车头数
         * @param MachinID   机台编号
         * @param code       产品编号
         * @param Inputer    錄入员
         * @param procno     工序编号
         * @return
         */
        @FormUrlEncoded
        @POST("ZZWorkOrder/insertEProductionInfo")
        Observable<UpdateInfo> insertEProductionInfo(
                @Field("groupA") String groupA,
                @Field("isFinish") boolean isFinish,
                @Field("rdsno") String rdsno,
                @Field("GroupCount") String GroupCount,
                @Field("zbid") String zbid,
                @Field("OverDate") long OverDate,
                @Field("EndTime") long EndTime,
                @Field("PrdID") String PrdID,
                @Field("Numb1") double Numb1,
                @Field("MachinID") String MachinID,
                @Field("code") String code,
                @Field("Inputer") String Inputer,
                @Field("procno") String procno,
                @Field("custid") String custid,
                @Field("orderno") String orderno,
                @Field("TolNumb") double TolNumb,
                @Field("PartID") String PartID,
                @Field("BuilderName") String BuilderName,
                @Field("InputerName") String InputerName,
                @Field("userid") int userid,
                @Field("id") int id,
                @Field("banzu") String banzu
                , @Field("stype") String stype,
                @Field("morecom") String morecom,
                @Field("remark") String remark
        );

        //查询工单
        @FormUrlEncoded
        @POST("ZZWorkOrder/queryWO")
        Observable<WorkOrder2> queryWO(
                @Field("barCode") String barCode,
                @Field("stype") String stype,
                @Field("morecom") String morecom,
                @Field("proCode") int proCode
        );

        @FormUrlEncoded
        @POST("ZZWorkOrder/findMachine")
        Observable<BaseHttpResult<MachineInfo>> findMacheine(
                @Field("code") String code
                , @Field("inputer") String inputer
                , @Field("processid") String processid
                , @Field("rdsno") String rdsno
                , @Field("stype") String stype,
                @Field("morecom") String morecom
        );
//    @GET("UserList/inputerCode")
//    Observable<BaseHttpResult<Inputer>> queryUserIsExist(@Query("name") String name);

        @FormUrlEncoded
        @POST("ZZWorkOrder/findInputer")
        Observable<BaseHttpResult<Inputer>> queryUserIsExist(
                @Field("code") String code
        );


        @FormUrlEncoded
        @POST("ZZWorkOrder/findPeopleGroup")
        Observable<BaseHttpResult<PeopleGroup>> findPeopleGroup(
                @Field("code") String code
                , @Field("pageSize") int pageSize
        );

        @FormUrlEncoded
        @POST("ZZWorkOrder/findBanzu")
        Observable<BaseHttpResult<PeopleGroup>> findBanzu(
                @Field("code") String code
                , @Field("pageSize") int pageSize
        );

//    @FormUrlEncoded
//    @POST("WorkOrder/findWorkPrice")
//    Observable<BaseHttpResult<PDistrubiton_JijianNumb>> findWorkPrice(
//            @Field("machinecode") String machinecode,
//            @Field("banzu") String banzu
//            , @Field("peopleGroup") String peopleGroup
//            , @Field("stype") String stype,
//            @Field("morecom") String morecom
//    );

        @FormUrlEncoded
        @POST("ZZWorkOrder/findWorkPrice")
        Observable<PDistrubition> findWorkPrice(
                @Field("machinecode") String machinecode,
                @Field("banzu") String banzu
                , @Field("peopleGroup") String peopleGroup
                , @Field("stype") String stype,
                @Field("morecom") String morecom
        );



        @FormUrlEncoded
        @POST("ZZWorkOrder/updateTimeStatus")
        Observable<BaseHttpResult<UpdateInfo>> updateTimeStatus(
                @Field("zbid") String zbid,
                @Field("procno") String procno,
                @Field("id") String id,
                @Field("e_Time") String e_Time
                , @Field("stype") String stype,
                @Field("morecom") String morecom
        );

        @FormUrlEncoded
        @POST("ZZWorkOrder/findWorker")
        Observable<BaseHttpResult<Worker>> findWorker(
                @Field("code") String code

        );


        /**
         * @param InputDate 建单日期
         * @param zbid      生产工程单id
         * @param rdsno     工单编号
         * @param orderno   订单编号
         * @param custid    客户id
         * @param StartTime 开始时间
         * @param PartID    部件id
         * @param PrdID     生产工程单工序id
         * @param TolNumb   应产数
         * @param code      产品编号
         * @param Inputer   錄入员
         * @param UserID    登录的用户id
         * @param MachinID  机台编号
         * @param procno    工序编号
         * @return
         */
        @FormUrlEncoded
        @POST("ZZWorkOrder/insertSProductionInfo")
        Observable<UpdateInfo> insertSProductionInfo(
                @Field("InputDate") long InputDate,
                @Field("zbid") String zbid,
                @Field("rdsno") String rdsno,
                @Field("orderno") String orderno,
                @Field("custid") String custid,
                @Field("StartTime") long StartTime,
                @Field("PartID") String PartID,
                @Field("PrdID") String PrdID,
                @Field("TolNumb") double TolNumb,
                @Field("code") String code,
                @Field("Inputer") String Inputer,
                @Field("UserID") String UserID,
                @Field("MachinID") String MachinID,
                @Field("BuilderName") String BuilderName,
                @Field("InputerName") String InputerName,
                @Field("procno") String procno
                , @Field("stype") String stype,
                @Field("morecom") String morecom
        );

        @FormUrlEncoded
        @POST("ZZWorkOrder/isrequestMaterial")
        Observable<RequstMaterial> getMaterial(
//            $rdsno,$partid,$GroupName,$reProce
                @Field("rdsno") String $rdsno, @Field("$partid") String $partid,
                @Field("$GroupName") String $groupName, @Field("$reProce") String $reProce
        );
    }

    @FormUrlEncoded
    @POST("WorkOrder/isrequestMaterial")
    Observable<RequstMaterial> getMaterial(
//            $rdsno,$partid,$GroupName,$reProce
            @Field("rdsno") String $rdsno, @Field("$partid") String $partid,
            @Field("$GroupName") String $groupName, @Field("$reProce") String $reProce
    );


    //http://192.168.1.119:8090/index.php/OpenTeam/OutWorkOrder/outWorkOrderDetail
    @FormUrlEncoded
    @POST("OutWorkOrder/outWorkOrderDetail")
    Observable<SendRcvBean> getRcvSendData(
            @Field("stype") String stype, @Field("rdsno") String rdsno
    );

//http://192.168.1.119:8090/index.php/OpenTeam/IPQCZC/findProMsg

    @GET("IPQCZC/findProMsg")
    Observable<IPQCProduce> findProMsg();

    @FormUrlEncoded
    @POST("IPQCZC/findMachine")
    Observable<IPQCMachine> findMachine(
            @Field("code") String code
    );


    @GET("IPQCZC/findPeople")
    Observable<IPQCCheckMan> findPeople();

    @FormUrlEncoded
    @POST("IPQCZC/findMsg00")
    Observable<IPQCMsg00> findMsg00(
            @Field("producecode") String producecode
    );

    @FormUrlEncoded
    @POST("IPQCZC/findMsg01")
    Observable<IPQCMsg01> findMsg01(
            @Field("producecode") String producecode
    );

    @GET("IPQCZC/findCheckItem")
    Observable<IPQCCheckItem> findCheckItem();

    @GET("IPQCZC/findBadReason")
    Observable<IPQCBadReason> findBadReason();

    @GET("IPQCZC/findDispose")
    Observable<IPQCDispose> findDispose();

    @GET("IQC/findSamplingPlan")
    Observable<IQCSamplePlan> findSamplingPlan();

    @GET("IQC/findCust00")
    Observable<IQCCust00> findCust00();

    @FormUrlEncoded
    @POST("IQC/findMsg00")
    Observable<IQCMsg00> findIQCMsg00(
            @Field("code") String code
    );

    @GET("IQC/findCheckItem")
    Observable<IQCCheckItem> findIQCCheckItem();

    @FormUrlEncoded
    @POST("IQC/findDefectsItem")
    Observable<IQCDefectdItem> findDefectsItem(
            @Field("code") String code
    );


    @FormUrlEncoded
    @POST("FQC/findSamplePlan")
    Observable<FQCSamplePlan> findFQCSamplePlan(
            @Field("checkNum") int checkNum
    );

    @FormUrlEncoded
    @POST("FQC/findSamplePlan")
    Observable<FQCSamplePlan> findFQCSamplePlanResult(
            @Field("code") String code,
            @Field("checkNum") int checkNum
    );

    @FormUrlEncoded
    @POST("FQC/findCR")
    Observable<FQCCrMaMi> findCR(
            @Field("checkNum") int checkNum,
            @Field("cr") int cr
    );

    @GET("FQC/findCheckItem")
    Observable<FQCCheckItem> findFQCCheckItem();

    @FormUrlEncoded
    @POST("FQC/findBadItem")
    Observable<FQCBadItem> findFQCBadItem(
            @Field("code") String code
    );

    @GET("FQC/findGoodsYield")
    Observable<FQCGoodsField> findGoodsYield();

    @GET("FQC/findGoodsCheck")
    Observable<FQCGoodsInspect> findFQCGoodsInspect();

    @GET("FQC/semiGoodsCheck")
    Observable<FQCHalfGoodsInspect> findFQCHalfGoodsInspect();

    @GET("FQC/findCheckMan")
    Observable<FQCCheckMan> findFQCCheckMan();

    @GET("PrintD/findCustomerMesg")
    Observable<PrintMesg> findPrintMesg();

    @GET("PrintD/findPaperTypeName")
    Observable<PaperTypeName> findPaperTypeName();

    @GET("PrintD/findprceDonePduRequest")
    Observable<ProcessDonePduReust> findprceDonePduRequest();

    @GET("PrintD/findprceDoneType")
    Observable<ProcessDoneType> findprceDoneType();

    @GET("PrintD/findExchangeRate")
    Observable<ExchangeRate> findExchangeRate();

    @FormUrlEncoded
    @POST("PrintD/findDGsm")
    Observable<PaperDGsm> findDGsm(
            @Field("typename") String typename,
            @Field("papertype") String papertype,
            @Field("gsm") String gsm,
            @Field("moneyType") String moneyType
    );

    //findBaseWeight
    @FormUrlEncoded
    @POST("PrintD/findBaseWeight")
    Observable<BaseWeight> findBaseWeight(
            @Field("typename") String typename,
            @Field("papertype") String papertype
    );

    @GET("PrintD/findMopocedure")
    Observable<Mopocedure> findMopocedure();

    @GET("SendRcCheck/findOutFactoryMesg")
    Observable<OutFactoryMsg> findOutFactoryMesg();

    @GET("SendRcCheck/findMoneyType")
    Observable<MoneyType> findMoneyType();

    @GET("SendRcCheck/findPayType")
    Observable<PayType> findPayType();

    @GET("SendRcCheck/findPoduMsg")
    Observable<SRCPoduMsg> findPoduMsg();

    @FormUrlEncoded
    @POST("SendRcCheck/findPlanMsg")
    Observable<SRCKPlanMsg> findPlanMsg(
            @Field("code") String code
    );

    @FormUrlEncoded
    @POST("SendRcvAppl/findUserMsg")
    Observable<SendRcvUserMsg> findUserMsg(
            @Field("rdsno") String rdsno,
            @Field("startDate") String startDate,
            @Field("endDate") String endDate,
            @Field("status") String status
    );

    @FormUrlEncoded
    @POST("SendRcvAppl/findPoductMsg")
    Observable<SendRcvPoductMsg> findPoductMsg(
            @Field("id") String id
    );

    @FormUrlEncoded
    @POST("SendRcvAppl/audit")
    Observable<ApprlSuccess> audit(
            @Field("checker") String checker,
            @Field("checkDate") String checkDate,
            @Field("id") String id
    );

    @FormUrlEncoded
    @POST("SendRcvAppl/reverseAudit")
    Observable<ApprlSuccess> reverseAudit(
            @Field("id") String id
    );

    @FormUrlEncoded
    @POST("DlryNote/findPrimaryTable")
    Observable<DlryNtPrimaryTable> findPrimaryTable(
            @Field("code") String code
    );

    @FormUrlEncoded
    @POST("DlryNote/findSubList")
    Observable<DlryNtSublist> findSubList(
            @Field("code") String code
    );

    @Multipart
    @POST("DlryNote/postSignture")
//String zbid,String returnMan,String returnDate,String returnStatus ,
    Observable<InsertStatus> postSignture(
            @PartMap() Map<String, RequestBody> map,
            @Query("zbid") String zbid,
            @Query("returnMan") String returnMan,
            @Query("returnDate") String returnDate,
            @Query("returnStatus") String returnStatus
    );

    @FormUrlEncoded
    @POST("DlryNote/cancle")
    Observable<InsertStatus> cancleRecipe(
            @Field("zbid") String zbid
    );

    @FormUrlEncoded
    @POST("DlryNote/showSignature")
    Observable<ShowSignature> shwoSignature(
            @Field("zbid") String zbid
    );

    // 装车单号
    @GET("LoadingList/findcoShipBusAll")
    Observable<ShipBus> getShipBus(@Query("rdsno") String rdsno);

    // 装车清单明细
    @GET("LoadingList/findcoShipBusAllLst")
    Observable<ShipBusList> getShipBusList(@Query("zbid") String zbid);

    // 查找送货单
    @GET("LoadingList/addDeliverNote")
    Observable<AddDeliverNote> addDeliverNote(@Query("rdsno") String rdsno);

    //添加送货单
    @FormUrlEncoded
    @POST("LoadingList/insertDelryNote")
    Observable<UpdateInfo> insertDelryNote(@Field("group") String group,
                                           @Field("ids") String ids
    );

    // 查找送货单
    @GET("LoadingList/deleteDeliverNote")
    Observable<UpdateInfo> deleteDeliverNote(@Query("id") String id);


    // 查找送货单
    @GET("LoadingList/deleteLoadingListNote")
    Observable<UpdateInfo> deleteLoadingListNote(@Query("id") String id);

    // 审核
    @GET("LoadingList/audit")
    Observable<UpdateInfo> audit_ldstlst(@Query("id") String id,
                                 @Query("checker") String checker,
                                 @Query("checkerDate") String checkerDate);


    // 反审核
    @GET("LoadingList/unaudit")
    Observable<UpdateInfo> unaudit_ldstlst(@Query("id") String id);

    //库存盘点主表
    @FormUrlEncoded
    @POST("StockTax/findDataFromCode")
    Observable<StockTaxMaterial> findDataFromCode(@Field("code") String code,
                                                  @Field("lcode") String lcode);

    // 库位查询
    @GET("StockTax/findLocation")
    Observable<StockTaxLocation> findLocation();

    //生成盘点单号前置步骤
    @FormUrlEncoded
    @POST("StockTax/findMaxRdsno")
    Observable<MaxRdsno> findMaxRdsno(@Field("tablename") String tablenam,
                                      @Field("morecom") String morecom,
                                      @Field("prefix") String prefix,
                                      @Field("link") String link,
                                      @Field("year") String year,
                                      @Field("month") String month);

    //存储数据到盘点单子表和主表
    @FormUrlEncoded
    @POST("StockTax/insertStCheckStock")
    Observable<UpdateInfo> insertStCheckStock(@Field("group") String group,
                                           @Field("inputer") String inputer,
                                           @Field("morecom") String morecom,
                                              @Field("mId") String mId,
                                              @Field("inputDate") String inputDate
    );

    //新版估价客户信息查询
    @GET("Evaluate/findCusCoder")
    Observable<Evaluate_customer> findEvaCustomer();

    //新版估价币种查询
    @GET("Evaluate/findpbMoneyType")
    Observable<MoneryTypeWithRate> findpbMoneyType();


    //新版估价工序信息查询
    @FormUrlEncoded
    @POST("Evaluate/findProductMsg")
    Observable<ProductMsg> findProductMsg(@Field("stype") String stype,
                                          @Field("uesrId") int uesrId);

    //新版估价辅料查询
    @GET("Evaluate/findpbMaterial")
    Observable<PbMaterial> findpbMaterial();

    //新版估价坑纸查询
    @GET("Evaluate/findpbKZMsg")
    Observable<PbKzMsg> findpbKZMsg();
}
